package com.nunbey.lingxi.config.lincat.spring.springdoc;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * SpringDoc API文档相关配置
 * Created by macro on 2022/3/4.
 */
@Configuration
public class SpringDocConfig {
        private static final String SECURITY_SCHEME_NAME = "token";
        @Bean
        public OpenAPI mallTinyOpenAPI() {
                return new OpenAPI()
                        .info(new Info().title("lingxi-api")
                                .description("大连大学-图灵工作室-灵犀智慧医疗系统后端接口文档")
                                .version("v1.0.0")
                                .license(new License().name("Apache 2.0").url("https://github.com/macrozheng/mall-learning")));
        }
}
